# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-future-annotations
_pkgname=future_annotations
pkgver=1.0.0
pkgrel=5
pkgdesc='A backport of __future__ annotations to python<3.7.'
url='https://pypi.org/project/future-annotations/'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
options=('!emptydirs')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('e31e52dc5a5330866b93418edc3204eef9f0245754679c60459fc3de67988d056f09bc563b5be6ff9fc8471b861ab5427b6c10fdcde7e054e6588fb7df1df050')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

